package study04;

/**
 * @author GZQ
 * @Date 2023/11/5
 */

public class Gdp {
    public static void main(String[] args) {
        double gdp = 14.5;
        double growth = 0.07;
        int year = 2023;
        while (year <= 2050) {
            gdp = gdp * growth + gdp;
            year++;
        }
        System.out.println("2025年，我国GDP是：" + gdp + "万亿美元");
    }
}
